/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define TEM1_ADC_Pin GPIO_PIN_0
#define TEM1_ADC_GPIO_Port GPIOC
#define TEM2_ADC_Pin GPIO_PIN_1
#define TEM2_ADC_GPIO_Port GPIOC
#define TEM3_ADC_Pin GPIO_PIN_2
#define TEM3_ADC_GPIO_Port GPIOC
#define TEM4_ADC_Pin GPIO_PIN_3
#define TEM4_ADC_GPIO_Port GPIOC
#define SPI_SCK_F_Pin GPIO_PIN_5
#define SPI_SCK_F_GPIO_Port GPIOA
#define SPI_MISO_F_Pin GPIO_PIN_6
#define SPI_MISO_F_GPIO_Port GPIOA
#define SPI_MOSI_F_Pin GPIO_PIN_7
#define SPI_MOSI_F_GPIO_Port GPIOA
#define SW_ADC_Pin GPIO_PIN_5
#define SW_ADC_GPIO_Port GPIOC
#define HV1_ADC_Pin GPIO_PIN_0
#define HV1_ADC_GPIO_Port GPIOB
#define HV2_ADC_Pin GPIO_PIN_1
#define HV2_ADC_GPIO_Port GPIOB
#define SCL_HAL_Pin GPIO_PIN_10
#define SCL_HAL_GPIO_Port GPIOB
#define SDA_HAL_Pin GPIO_PIN_11
#define SDA_HAL_GPIO_Port GPIOB
#define SPI_SCK_Pin GPIO_PIN_13
#define SPI_SCK_GPIO_Port GPIOB
#define SPI_MISO_Pin GPIO_PIN_14
#define SPI_MISO_GPIO_Port GPIOB
#define SPI_MOSI_Pin GPIO_PIN_15
#define SPI_MOSI_GPIO_Port GPIOB
#define HOT_IO_Pin GPIO_PIN_7
#define HOT_IO_GPIO_Port GPIOC
#define VCC12V_EN_Pin GPIO_PIN_9
#define VCC12V_EN_GPIO_Port GPIOC
#define MCU_BLE_EN_Pin GPIO_PIN_8
#define MCU_BLE_EN_GPIO_Port GPIOA
#define LED1_Pin GPIO_PIN_11
#define LED1_GPIO_Port GPIOA
#define LED2_Pin GPIO_PIN_12
#define LED2_GPIO_Port GPIOA
#define SWDIO_Pin GPIO_PIN_13
#define SWDIO_GPIO_Port GPIOA
#define SWCLK_Pin GPIO_PIN_14
#define SWCLK_GPIO_Port GPIOA
#define RE_IO_Pin GPIO_PIN_12
#define RE_IO_GPIO_Port GPIOC
#define DSG_IO_Pin GPIO_PIN_5
#define DSG_IO_GPIO_Port GPIOB
#define CHG_IO_Pin GPIO_PIN_6
#define CHG_IO_GPIO_Port GPIOB
#define CAN1_RX_Pin GPIO_PIN_8
#define CAN1_RX_GPIO_Port GPIOB
#define CAN1_TX_Pin GPIO_PIN_9
#define CAN1_TX_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
